<layout name="layout" />
<div class="pageheader notab">
	<span class="pagedesc" style="color:#ED7A53;display: block;padding: 5px;">
		请谨慎选择推广宝贝和推广标题，以免违规，详细规则请认真参考<a target="_blank" href="http://service.taobao.com/support/knowledge-1121130.htm">《淘宝直通车软件服务使用规范》</a>，十禾云智投不承担因推广宝贝、推广标题违禁所造成的损失
	</span>
    <h1 class="pagetitle" style="margin-top:0;">
        <a href="/" class="linkWay">首页/全部推广计划</a>
        &nbsp;<span class="divider">»</span>&nbsp;
        <a href="/campaign/manage?campaign_id={$campaign_id}" class="linkWay campaign-title-{$campaign_id}">{$campaign.title}</a>
        &nbsp;<span class="divider">»</span>&nbsp;
        <a href="/promote/manual?campaign_id={$campaign_id}" class="linkWay campaign-title-{$campaign_id}">新建宝贝推广</a>
        &nbsp;<span class="divider">»</span>&nbsp;
        <a href="#" class="currentWay">推广内容</a>
    </h1>
</div>
<div id="contentwrapper" class="contentwrapper">
    <form method="post" action="/promote/wireless?step=3">
        <input type="hidden" name="campaign_id" id="campaign_id" value="{$campaign_id}">
        <input type="hidden" name="product_id" id="product_id" value="{$product_id}">
        <input type="hidden" name="budget" id="budget" value="{$budget}">
        <input type="hidden" name="limit" id="limit" value="{$limit}">
        <div class="row product_div" style="width:1198px;box-sizing:border-box;">
            <div style="margin-bottom: 20px;">
                <h4 style="padding-bottom:5px" id="item-title">{$item.title}</h4>
            </div>
            <div id="adgroup-creative">

            </div>
        </div>
        <div style="text-align:center; margin-top: 10px;">
            <div class="loging" style="width:100%;text-align:center;"></div>
            <input type="hidden" name="J_autoDrive" value="wireless">
            <a id="start_quick_campaign" class="button manual_next_step login-btn" href="javascript:void(0);"  >下一步</a>
        </div>
    </form>
</div>

<include file="{APP_PATH}Template/Promote/creatives.html" />
<script type="text/javascript">
    var itemInfo = {$itemInfo};
    var campaign_id = {$campaign_id};
    var limit = {$limit};
    var budget = {$budget};
    var user_id = {$me["user_id"]};

    $(document).ready(function(){
        promote.creative($('.contentwrapper'), {
            user_id: user_id,
            campaign_id: campaign_id,
            limit: limit,
            budget: budget,
            itemInfo: itemInfo,
            needCheckChange: true
        }).init();
    });
</script>
